package com.chance.cc.crawler.prod.command.trigger.domain.news.foodmate;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.meta.foodmate.FoodMateRealtimeCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

public class FoodMateArticleCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {
    public static void main(String[] args) {
        publishFootMateArticleRealtimeScheduleTriggerInfo();
    }

    public static void publishFootMateArticleRealtimeScheduleTriggerInfo() {
        CrawlerJob crawlerJob = FoodMateRealtimeCrawlerScheduleJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                FoodMateRealtimeCrawlerScheduleJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                //"0 0 4 * * ?",
                "0 0 4 * * ?",
                "食品网追溯7日文章采集任务，每天采集一次"

        );
    }


}
